package com.mariusz.ui.models;

import java.util.List;

import javax.swing.AbstractListModel;

public class MessagesListModel extends AbstractListModel {
	private List<String> list;
	
	public MessagesListModel(List<String> list){
		super();
		this.list = list;
	}
	
	@Override
	public Object getElementAt(int index) {
		
		return list.get(index);
	}

	@Override
	public int getSize() {

		return list.size();
	}
}
